Don't install trivial-httpd man page if not enabled
authorColin Walters <walters@verbum.org>
Fri, 2 Jun 2017 19:26:26 +0000 (15:26 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Fri, 2 Jun 2017 19:36:56 +0000 (19:36 +0000)
I just noticed this scroll by in a file listing.

Closes: #905
Approved by: jlebon

Makefile-man.am
configure.ac

index bdc7894704a2b4737daf33bae679b2b3ccfb0b00..7996d2d572b9cf2a770e2ef99637ca83c67a62e4 100644 (file)
@@ -29,7 +29,10 @@ ostree-commit.1 ostree-export.1 ostree-gpg-sign.1 ostree-config.1    \
 ostree-diff.1 ostree-fsck.1 ostree-init.1 ostree-log.1 ostree-ls.1     \
 ostree-prune.1 ostree-pull-local.1 ostree-pull.1 ostree-refs.1         \
 ostree-remote.1 ostree-reset.1 ostree-rev-parse.1 ostree-show.1                \
-ostree-summary.1 ostree-static-delta.1 ostree-trivial-httpd.1
+ostree-summary.1 ostree-static-delta.1
+if BUILDOPT_TRIVIAL_HTTPD
+man1_files += ostree-trivial-httpd.1
+endif
 
 if BUILDOPT_FUSE
 man1_files += rofiles-fuse.1
index a6abee8599ffddba0324edd1120e9e9fd5e4f589..c60806f49f825779a1005637e9ccf0933c49f629 100644 (file)
@@ -148,7 +148,8 @@ AC_ARG_ENABLE(trivial-httpd-cmdline,
   [AS_HELP_STRING([--enable-trivial-httpd-cmdline],
   [Continue to support "ostree trivial-httpd" [default=no]])],,
   enable_trivial_httpd_cmdline=no)
-AS_IF([test x$enable_trivial_httpd_cmdline = xyes],
+AM_CONDITIONAL(BUILDOPT_TRIVIAL_HTTPD, test x$enable_trivial_httpd_cmdline = xyes)
+AM_COND_IF(BUILDOPT_TRIVIAL_HTTPD,
   [AC_DEFINE([BUILDOPT_ENABLE_TRIVIAL_HTTPD_CMDLINE], 1, [Define if we are enabling ostree trivial-httpd entrypoint])]
 )